
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.5.0/vue.js"></script>
</head>
<body>
	<div id="app">
	<cpn><span slot="tit">标题</span></cpn>
	</div>

	<template id="cpnC1">
		<div>
			<slot><span>左边</span></slot>
			<slot name="tit"><span>中间</span></slot>
			<slot><span>右边</span></slot>
		</div>	
	</template>
	<script type="text/javascript">	
		const app = new Vue({
			el:'#app',
			components:{
				cpn:{
					template:'#cpnC1'
				}
			}
		})
	</script>
</body>
</html>